import {
	request
} from '@/util/api.js'

// 获取展会id(首页跳转单展会的id)
export const exhibitionIndex = (data) => {
	return request({
		url: 'api/exhibition/index',
		method: 'get'
	})
}

// 首页展会栏目
export const exhibitionColumn = (data) => {
	return request({
		url: 'api/exhibition/column',
		method: 'get'
	})
}

// 首页展会列表
export const exhibitionList = (data) => {
	return request({
		url: 'api/exhibition/list',
		method: 'post',
		data
	})
}

// 展会详情
export const exhibitionDetails = (data) => {
	return request({
		url: 'api/exhibition/details',
		method: 'post',
		data
	})
}

// 观战热度增加
export const exhibitionHeatval = (id) => {
	return request({
		url: 'api/exhibition/heat_val?id=' + id,
		method: 'get'
	})
}

//  申请加入展会
export const exhibitionApplyEnrol = (data) => {
	return request({
		url: 'api/exhibition/apply_enrol',
		method: 'post',
		data
	})
}

// 我的展会
export const myExhibition = (data) => {
	return request({
		url: 'api/user/exhibition',
		method: 'post',
		data
	})
}

/****展会开始前****/

// 展会热门搜索
export const companySearch = (data) => {
	return request({
		url: 'api/adsense/company_search',
		method: 'get',
		data
	})
}

// 企业logo推广
export const companyLogoList = (data) => {
	return request({
		url: 'api/adsense/company_list',
		method: 'get',
		data
	})
}

// 公告
export const announcement = (data) => {
	return request({
		url: 'api/adsense/announcement',
		method: 'get',
		data
	})
}

// 扫码进入展会中间页跳转
export const orcodePromotion = (data) => {
	return request({
		url: 'api/orcode/promotion',
		method: 'get',
		data
	})
}